/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package ar.edu.utn.frsf.cidisi.upcolbpip.businessinterfaces.impl;

import ar.edu.utn.frsf.cidisi.upcolbpip.businessinterfaces.*;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EFactoryImpl;

import org.eclipse.emf.ecore.plugin.EcorePlugin;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Factory</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class BusinessinterfacesFactoryImpl extends EFactoryImpl implements BusinessinterfacesFactory {
	/**
	 * Creates the default factory implementation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static BusinessinterfacesFactory init() {
		try {
			BusinessinterfacesFactory theBusinessinterfacesFactory = (BusinessinterfacesFactory)EPackage.Registry.INSTANCE.getEFactory("ar.edu.utn.frsf.cidisi.upcolbpip.businessinterfaces"); 
			if (theBusinessinterfacesFactory != null) {
				return theBusinessinterfacesFactory;
			}
		}
		catch (Exception exception) {
			EcorePlugin.INSTANCE.log(exception);
		}
		return new BusinessinterfacesFactoryImpl();
	}

	/**
	 * Creates an instance of the factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public BusinessinterfacesFactoryImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public EObject create(EClass eClass) {
		switch (eClass.getClassifierID()) {
			case BusinessinterfacesPackage.BUSINESS_INTERFACE: return createBusinessInterface();
			case BusinessinterfacesPackage.BUSINESS_SERVICE: return createBusinessService();
			case BusinessinterfacesPackage.SERVICE_PARAMETER: return createServiceParameter();
			default:
				throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
		}
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public BusinessInterface createBusinessInterface() {
		BusinessInterfaceImpl businessInterface = new BusinessInterfaceImpl();
		return businessInterface;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public BusinessService createBusinessService() {
		BusinessServiceImpl businessService = new BusinessServiceImpl();
		return businessService;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ServiceParameter createServiceParameter() {
		ServiceParameterImpl serviceParameter = new ServiceParameterImpl();
		return serviceParameter;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public BusinessinterfacesPackage getBusinessinterfacesPackage() {
		return (BusinessinterfacesPackage)getEPackage();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @deprecated
	 * @generated
	 */
	@Deprecated
	public static BusinessinterfacesPackage getPackage() {
		return BusinessinterfacesPackage.eINSTANCE;
	}

} //BusinessinterfacesFactoryImpl
